package com.chzu.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author liangzhuo
 * @create 2021-10-21-20:52
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("datasource")
public class DataSource {

    @TableId(value = "id", type = IdType.AUTO)
    Long id;

    @TableField(value = "table_name")
    String tableName;

    @TableField(value = "type")
    Integer type;

    @TableField(value = "driver_class")
    String driverClass;

    @TableField(value = "url")
    String url;

    @TableField(value = "user_name")
    String userName;

    @TableField(value = "password")
    String password;

    @TableLogic(value = "is_active")
    Integer isActive;
}
